<?php
/**
 * A simple dummy "content" page.
 * 
 * Demonstrates how to add a log out menu-item for PageBricks_Auth
 * @package    PageBricks
 * @subpackage Xamples
 * @filesource
 */
/**
 * To log out PageBrick_Auth send action=logout as a GET parameter
 * Create a logoutlink from the name of the current script (from the PageBricks_Auth object)like so:
 * $logoutLink = $a->getScriptName() . '?action=logout';
 * The only interesting part in the HTML is the logout a bit further down inside the {@link http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc heredoc}:
 * <a href="$logoutLink">Log Out</a>
 */
$logoutLink = $a->getScriptName() . '?action=logout';
echo <<<EOT
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title>myPage</title>
		<style>
			* {
				padding: 0;
				margin: 0;
				border: 0;
			}
			body{
				margin: 1%
			}
			div {
				background-color: darkgrey;
				padding: 0em 0.5em 0em 0.5em;
			}
			li {
				display: inline;
				border-right: 1px solid black;
			}
			a {
				color: white;
				padding: 0.2em;
				text-decoration: none;
			}
		</style>
	</head>
	<body>
		<div>
			<ul>
				<li style="float: right; padding-right: 0.5em; border: 0;"><a href="$logoutLink">Log Out</a></li>
				<li><a href=#>MenuItem1</a></li>
				<li><a href=#>MenuItem2</a></li>
			</ul>
		</div>
		<br />
		<div>
			<br />
			<h2>Header</h2>
			<p>Lorem ipsum...</p>
			<br /><br />
		</div>
	</body>
</html>
EOT;
?>